import request from '@/utils/request'
import qs from 'qs'
export function getstrategydata() {
    const url = '/strategy/strategydata'
    return request({
      url: url,
      method: 'get'
    })
}

export function deletestrategydata(id) {
    console.log(777);
    const url = '/strategy/delete'
    return request({
      url: url,
      method: 'post',
      data: qs.stringify({id}),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
    })
}


export function updatestrategydata(data) {
    const url = '/strategy/update'
    return request({
      url: url,
      method: 'post',
      data: qs.stringify(data),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
    })
}

export function addehotdata(data) {
    const url = '/strategy/add'
    return request({
      url: url,
      method: 'post',
      data: qs.stringify(data),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
    })
}

 